package com.yuncheng.spcyApi.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.yuncheng.spcyApi.entity.SpcyJcyLxpxls;
import com.yuncheng.spcyApi.mapper.SpcyJcyLxpxlsMapper;
import com.yuncheng.spcyApi.service.ISpcyJcyLxpxlsService;
import org.springframework.stereotype.Service;

import com.yuncheng.common.base.service.impl.BaseServiceImpl;

import java.util.List;

/**
 * @Description: 检查员-遴选培训老师
 * @Author: yuncheng
 * @Date: 2024-02-20
 * @Version: V1.0
 */
@Service
public class SpcyJcyLxpxlsServiceImpl extends BaseServiceImpl<SpcyJcyLxpxlsMapper, SpcyJcyLxpxls> implements ISpcyJcyLxpxlsService {

    @Override
    public List<SpcyJcyLxpxls> getPxlsList(String flxjhid) {
        return list(new LambdaQueryWrapper<SpcyJcyLxpxls>()
                .eq(SpcyJcyLxpxls::getFlxjhid, flxjhid)
                .orderByAsc(SpcyJcyLxpxls::getCreateTime));
    }
}
